<template>
  <div class="home">
    <div style="padding-left:20px">
      <input type="text" v-model="dd" v-focus>
      </div> 
  </div>
</template>

<script>
export default {
  name: 'home',
  data(){
    return {
      dd:'',
      cc:22
    }
  },
  directives:{
    focus:{
       inserted:function (el) {
          el.focus()
        }
    }
  }
 
}
</script>
